Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make upgrade and update minimum Go version to 1.21 #3123

Merged
merged 24 commits into from
Aug 13, 2024
Merged

Conversation

bufdev
Copy link
Member

@bufdev bufdev commented Jul 3, 2024

This is practically ready for merge once 1.23 is released. Do a make upgrade before merging.

Copy link
Contributor

github-actions bot commented Jul 3, 2024

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedAug 13, 2024, 10:27 PM

@bufdev bufdev changed the title Make upgrade Make upgrade and update minimum Go version to 1.21 Jul 3, 2024
@bufdev
Copy link
Member Author

bufdev commented Jul 29, 2024

FYI @doriable @oliversun9 @pkwarren I'm keeping this branch up to date in anticipation of 1.23 release, ignoring other dependabots for now

bufdev and others added 7 commits August 1, 2024 17:50
As a quick follow-up to #3124 and in response to
#3124 (comment),
this adds a `clean` config key to `v2` `buf.gen.yaml`, for example:

```yaml
version: v2
clean: true
plugins:
  - local: custom-gen-go
    out: gen/go
    opt: paths=source_relative
    strategy: directory
  - protoc_builtin: java
    out: gen/java
```

When running `buf generate` with the above configs, the outs set to each
plugin
(e.g. `gen/go` and `gen/java`) will be removed before code generation is
run.

If `buf generate --clean` flag is set, then that will always take
precedence, even if
`clean: false` in the configuration. And likewise, if `buf generate
--clean=false`,
and `clean: true` in the configuration, then we would not delete the out
directories.

---------

Co-authored-by: Oliver Sun <73540835+oliversun9@users.noreply.github.com>
Co-authored-by: Oliver Sun <osun@buf.build>
Co-authored-by: bufdev <4228796+bufdev@users.noreply.github.com>
Co-authored-by: bufdev <bufdev-github@buf.build>
@bufdev
Copy link
Member Author

bufdev commented Aug 13, 2024

Likely relies on golangci/golangci-lint#4836 being merged. Also https://hub.docker.com/_/golang needs 1.23.

@bufdev
Copy link
Member Author

bufdev commented Aug 13, 2024

Docker updated in docker-library/golang#529, just waiting on golangci-lint.

@bufdev
Copy link
Member Author

bufdev commented Aug 13, 2024

Actually now need docker-library/official-images#17359.

@bufdev
Copy link
Member Author

bufdev commented Aug 13, 2024

Temporarily downgrading the Docker images to 1.22 until the 1.23 images are available - this actually has no effect since go.mod has toolchain set to 1.23.0, which is what will be used for builds.

@bufdev bufdev merged commit b063948 into main Aug 13, 2024
11 checks passed
@bufdev bufdev deleted the make-upgrade-20240703 branch August 13, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants